/**
 * Created by 白雨浓 on 2018/12/5 12:03.
 *
 * 全局loading
 */
export default {
  install(Vue) {
    Vue.prototype.$loading = {
      start() {
        Vue.prototype.$eventBus.emit('loading', 'start');
      },
      close() {
        Vue.prototype.$eventBus.emit('loading', 'stop');
      }
    }
  }
}